package com.ysh.smartplatform.mapper;

import com.ysh.smartplatform.pojo.Scene;
import com.ysh.smartplatform.pojo.SceneExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 袁胜虎 on 2022/9/8 11:46
 */
public interface SceneMapper {
    long countByExample(SceneExample example);

    int deleteByExample(SceneExample example);

    int deleteByPrimaryKey(Long sceneId);

    int insert(Scene record);

    int insertSelective(Scene record);

    List<Scene> selectByExample(SceneExample example);

    Scene selectByPrimaryKey(Long sceneId);

    int updateByExampleSelective(@Param("record") Scene record, @Param("example") SceneExample example);

    int updateByExample(@Param("record") Scene record, @Param("example") SceneExample example);

    int updateByPrimaryKeySelective(Scene record);

    int updateByPrimaryKey(Scene record);

    @Delete("delete from sys_scene where scene_name = #{sceneName}")
    void deleteBySceneName(String sceneName);
}
